<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../js/jquery1111.min.js" ></script>
	</head>
	<body>
		<form id="f">
			标题：<input name="info.title" /><br/>
			内容：<input name="info.text" /><br/>
			类型：<input name="info.type" /><br/>
			创建时间：<input name="info.create_time" /><br/>
			发布人<input name="info.user" /><br/>
		</form>
		<button onclick="create()">保存</button>
	</body>
	<script>
		function create(){
			$.ajax({
				url: 'http://192.168.10.150:8080/add',
				data: $("#f").serialize(),
				type: 'get',
				dataType: 'json',
				success: function(json){
					alert('ok');
				},
				error: function(){
					alert('error');
				}
			});
		}
		
	</script>
</html>
		
